gtk4.git
15 years agoDon't use GDK_NONE when GDK_SELECTION_CLIPBOARD is meant
Matthias Clasen [Tue, 1 Mar 2011 00:24:29 +0000 (19:24 -0500)]
Don't use GDK_NONE when GDK_SELECTION_CLIPBOARD is meant

15 years agoRemoved incorrect description's sentence.
Patricia Santana Cruz [Mon, 28 Feb 2011 16:54:31 +0000 (17:54 +0100)]
Removed incorrect description's sentence.

Description was wrong when it explained: "The two areas are separated
by a GtkHSeparator.". These separators are not used any more.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=643496

15 years agogdk: add precondition checks to many GdkDisplay functions
Michael Natterer [Mon, 28 Feb 2011 16:34:52 +0000 (17:34 +0100)]
gdk: add precondition checks to many GdkDisplay functions

instead of crashing in GDK_DISPLAY_GET_CLASS(NULL)->foo(NULL);

15 years agoDon't assert on zero width/height in render functions
Matthias Clasen [Mon, 28 Feb 2011 12:52:59 +0000 (07:52 -0500)]
Don't assert on zero width/height in render functions

We can just silently ignore those rendering calls.
https://bugzilla.gnome.org/show_bug.cgi?id=643041

15 years agogdk: gdk_x11_device_xi2_get_state(): move stuff to local scope
Michael Natterer [Sun, 27 Feb 2011 14:06:41 +0000 (15:06 +0100)]
gdk: gdk_x11_device_xi2_get_state(): move stuff to local scope

15 years agoUploaded Ukranian
Daniel Korostil [Sun, 27 Feb 2011 10:20:37 +0000 (12:20 +0200)]
Uploaded Ukranian

15 years agoDrop _gdk_x11_set_input_focus_safe
Matthias Clasen [Sun, 27 Feb 2011 03:13:06 +0000 (22:13 -0500)]
Drop _gdk_x11_set_input_focus_safe

All that this function did was to asynchronously catch errors.
Since we have asynchronous error traps now, we can just use
XSetInputFocus().

15 years agoUploaded Ukranian
Daniel Korostil [Sat, 26 Feb 2011 20:01:32 +0000 (22:01 +0200)]
Uploaded Ukranian

15 years agoList all available icons in Makefile.am
Matthias Clasen [Sat, 26 Feb 2011 05:23:47 +0000 (00:23 -0500)]
List all available icons in Makefile.am

This mismatch was causing e.g. gtk-caps-lock-warning.png to show
up as missing image in entries.

15 years agoGtkSwitch: use regular activation
Matthias Clasen [Fri, 25 Feb 2011 20:47:03 +0000 (15:47 -0500)]
GtkSwitch: use regular activation

GtkSwitch was listening for Space/Enter keyreleases itself, instead
of providing an 'activate' action signal, like e.g GtkButton. As a
side-effect, this fixes
https://bugzilla.gnome.org/show_bug.cgi?id=643321

15 years agoGtkTrayIcon: chain up in dispose
Matthias Clasen [Fri, 25 Feb 2011 19:37:57 +0000 (14:37 -0500)]
GtkTrayIcon: chain up in dispose

Pointed out in bug 643131

15 years agoMore patchwork for icon view subclasses that access the icon view api prematurely.
Tristan Van Berkom [Fri, 25 Feb 2011 07:00:20 +0000 (16:00 +0900)]
More patchwork for icon view subclasses that access the icon view api prematurely.

In this patch we adress rows_reordered() and row_deleted() callbacks
(since some icon view subclasses manipulate the connected treemodel
from _init()).

15 years agoMore patchwork to ensure GtkIconView subclasses can use the icon view api
Tristan Van Berkom [Fri, 25 Feb 2011 05:53:12 +0000 (14:53 +0900)]
More patchwork to ensure GtkIconView subclasses can use the icon view api
from the subclass's instance structure initializer

15 years agoCopy event axes for double/triple click events in gdk_event_copy()
Carlos Garcia Campos [Thu, 24 Feb 2011 16:38:40 +0000 (17:38 +0100)]
Copy event axes for double/triple click events in gdk_event_copy()

Button event axes for double/triple click events are freed by
gdk_event_free(), so copy them to avoid an invalid free when releasing a
copied event.

15 years ago[GtkFileChooser] Fix initial selection when hidden files are shown
Federico Mena Quintero [Thu, 24 Feb 2011 20:53:09 +0000 (14:53 -0600)]
[GtkFileChooser] Fix initial selection when hidden files are shown

We were breaking prematurely out of the loop that goes through
each file that is pending selection; not only does that loop
disable filtering and show hidden files if needed, but it also
selects the files themselves.  So we need to walk the whole
list of files.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=643170

15 years agoAdded documentation to "cell-area" construct-only properties.
Tristan Van Berkom [Thu, 24 Feb 2011 07:05:41 +0000 (16:05 +0900)]
Added documentation to "cell-area" construct-only properties.

Indicate what kind of area will be used by default if none is
provided by the user.

15 years agoAvoid spurious emissions of monitors-changed
Alexander Larsson [Thu, 24 Feb 2011 18:44:16 +0000 (19:44 +0100)]
Avoid spurious emissions of monitors-changed

The monitor change detection code in _gdk_x11_screen_size_changed() and
process_monitors_change() goes to some length to make sure its only emitted
when there is an actual change to the data visible via the GdkScreen monitors
api.

However, commit 662e69ad added some code that always emits "monitors-changed"
in _gdk_x11_screen_size_changed when we have randr13 and get a ConfigureNotify
on the root window (even though we may already have emitted it in the
RRScreenChangesNotify event!).

As far as I can tell this is due to a comment in the bug referenced by the
commit (https://bugzilla.gnome.org/show_bug.cgi?id=601712#c4) where it says:

  This version of the patch changes GdkDisplay to emit "monitors-changed" when
  the primary monitor changes (see the change in _gdk_x11_screen_size_changed).

And, if you remove this part of the change the signal is not emitted when just
the primary is changed. However, this is not really the right approach. We
should just also check for if the primary changes in process_monitors_change()
to avoid spurious signal emissions.

https://bugzilla.gnome.org/show_bug.cgi?id=643216

15 years agoUpdated Slovenian translation
Klemen Košir [Thu, 24 Feb 2011 16:23:23 +0000 (17:23 +0100)]
Updated Slovenian translation

15 years agoRemoved unused EXPOSE_EVENT enumeration from the GtkWidget signals.
Tristan Van Berkom [Wed, 23 Feb 2011 13:07:27 +0000 (22:07 +0900)]
Removed unused EXPOSE_EVENT enumeration from the GtkWidget signals.

15 years agoRemove mention of GtkWidget::expose-event from docs in gtkwidget.c
Tristan Van Berkom [Wed, 23 Feb 2011 12:58:48 +0000 (21:58 +0900)]
Remove mention of GtkWidget::expose-event from docs in gtkwidget.c

15 years agoAdd more defensive code to avoid accessing GtkIconView's cell area before it exists.
Tristan Van Berkom [Wed, 23 Feb 2011 11:50:50 +0000 (20:50 +0900)]
Add more defensive code to avoid accessing GtkIconView's cell area before it exists.

Adding these cases here to cater to icon view subclasses that want to
access icon view APIs from the instance structure initializer instead
of properly waiting for the super class to initialize and adding renderers
from the ->constructor() vfunc.

15 years ago[l10n] Updated German translation
Christian Kirbach [Wed, 23 Feb 2011 22:08:02 +0000 (23:08 +0100)]
[l10n] Updated German translation

15 years agoUpdate Simplified Chinese translation.
Aron Xu [Wed, 23 Feb 2011 17:19:35 +0000 (17:19 +0000)]
Update Simplified Chinese translation.

15 years agoMore tiny documentation typo fixes.
Murray Cumming [Wed, 23 Feb 2011 10:09:20 +0000 (11:09 +0100)]
More tiny documentation typo fixes.

15 years agoMinor documentation improvements
Murray Cumming [Wed, 23 Feb 2011 09:26:21 +0000 (10:26 +0100)]
Minor documentation improvements

Mostly correcting it's to its and changing some , to .

15 years agoGdkDevice: Minor improvement to the overview documentation.
Murray Cumming [Wed, 23 Feb 2011 08:37:06 +0000 (09:37 +0100)]
GdkDevice: Minor improvement to the overview documentation.

The last paragraph still seems to be out of place though, as if it
was a previous attempt at an overview or part of some older text
elsewhere.

This overuses the passive too.

15 years agoPost-release version bump to 3.0.2
Matthias Clasen [Mon, 21 Feb 2011 23:58:22 +0000 (18:58 -0500)]
Post-release version bump to 3.0.2

15 years agoRemove more unwanted garbage
Matthias Clasen [Mon, 21 Feb 2011 23:52:27 +0000 (18:52 -0500)]
Remove more unwanted garbage

15 years agoRemove some unwanted garbage
Matthias Clasen [Mon, 21 Feb 2011 23:41:46 +0000 (18:41 -0500)]
Remove some unwanted garbage

15 years agoFix distcheck
Matthias Clasen [Mon, 21 Feb 2011 23:34:09 +0000 (18:34 -0500)]
Fix distcheck

15 years agoUpdate NEWS
Matthias Clasen [Mon, 21 Feb 2011 23:09:57 +0000 (18:09 -0500)]
Update NEWS

15 years agoDon't export extra symbols for accessibility
Matthias Clasen [Mon, 21 Feb 2011 22:31:37 +0000 (17:31 -0500)]
Don't export extra symbols for accessibility

15 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 23 Jan 2011 08:00:53 +0000 (10:00 +0200)]
Updated Bulgarian translation

15 years agoupdate Punjabi Translation by A S Alam
A S Alam [Mon, 21 Feb 2011 01:32:22 +0000 (07:02 +0530)]
update Punjabi Translation by A S Alam

15 years agogdk_cursor_new_from_pixmap: Fix gdk_display_is_closed call
Marc-André Lureau [Mon, 21 Feb 2011 00:44:35 +0000 (01:44 +0100)]
gdk_cursor_new_from_pixmap: Fix gdk_display_is_closed call

This was typoed in commit dfe6ba932ca798c53121f90b7d696b5d2231a179
https://bugzilla.gnome.org/show_bug.cgi?id=642843

15 years agodocs: Fix typo
Benjamin Otte [Sun, 20 Feb 2011 23:06:08 +0000 (00:06 +0100)]
docs: Fix typo

15 years agodocs: Replace pixmap use in migration guide with cairo surfaces
Benjamin Otte [Sun, 20 Feb 2011 22:42:43 +0000 (23:42 +0100)]
docs: Replace pixmap use in migration guide with cairo surfaces

Merge my patch for this with Matthias' previous patch and keep the best
of both.

https://bugzilla.gnome.org/show_bug.cgi?id=642677

15 years agotextview: Remove x/y arguments from render_para() func
Benjamin Otte [Sun, 20 Feb 2011 22:35:16 +0000 (23:35 +0100)]
textview: Remove x/y arguments from render_para() func

We were only passing 0 anyway and it's easy to translate the cairo
context in use instead of passing x/y coordinates.

15 years agotextview: Translate the cairo context instead of keeping y value
Benjamin Otte [Sun, 20 Feb 2011 22:29:49 +0000 (23:29 +0100)]
textview: Translate the cairo context instead of keeping y value

This avoids overflow when transforming a large value to a pango unit.
To reproduce the problem:
seq 200000 > test.txt && tets/print-editor test.txt
Then scroll to around line 140.000 to see it (depends on font size of
course).

15 years agoRemove no-longer existing API from the migration guide
Matthias Clasen [Sun, 20 Feb 2011 22:03:45 +0000 (17:03 -0500)]
Remove no-longer existing API from the migration guide

Some parts of the migration guide were written before the demise
of pixmaps, and still referred to pixmap API in their replacements.

15 years agoTweak include order a bit to get around compilation errors
Tor Lillqvist [Sun, 20 Feb 2011 21:54:57 +0000 (23:54 +0200)]
Tweak include order a bit to get around compilation errors

wintab.h defines an INT() macro that interfers with some lines in
commctrl.h.

15 years agoFix spelling
Matthias Clasen [Sun, 20 Feb 2011 21:46:27 +0000 (16:46 -0500)]
Fix spelling

It is 'accessible', not 'accesible'.

15 years agoReact to is-focus change, not ignore it
Matthias Clasen [Sun, 20 Feb 2011 21:44:26 +0000 (16:44 -0500)]
React to is-focus change, not ignore it

A very old bug, noticed in
https://bugzilla.gnome.org/show_bug.cgi?id=642791

15 years agoUpdated Spanish translation
Jorge González [Sun, 20 Feb 2011 17:48:11 +0000 (18:48 +0100)]
Updated Spanish translation

15 years agoUpdated Spanish translation
Jorge González [Sun, 20 Feb 2011 17:47:10 +0000 (18:47 +0100)]
Updated Spanish translation

15 years agoUpdated Spanish translation
Jorge González [Sun, 20 Feb 2011 17:22:59 +0000 (18:22 +0100)]
Updated Spanish translation

15 years agoUpdated British English translation
Bruce Cowan [Sun, 20 Feb 2011 17:02:13 +0000 (17:02 +0000)]
Updated British English translation

15 years agoUpdated Hungarian translation
Gabor Kelemen [Sun, 20 Feb 2011 14:55:58 +0000 (15:55 +0100)]
Updated Hungarian translation

15 years agoCorrectly treat GdkColor properties
Matthias Clasen [Sun, 20 Feb 2011 14:46:42 +0000 (09:46 -0500)]
Correctly treat GdkColor properties

Noticed by Daniel Garcia,
https://bugzilla.gnome.org/show_bug.cgi?id=642782

15 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 20 Feb 2011 13:02:24 +0000 (14:02 +0100)]
Updated Spanish translation

15 years agoHandle emulated keyboard input that arrives as VK_PACKET
Tor Lillqvist [Sat, 19 Feb 2011 23:39:13 +0000 (01:39 +0200)]
Handle emulated keyboard input that arrives as VK_PACKET

Fixes bug #642772. Thanks to the anonymous bug reporter for providing
a test program.

15 years agoReplace GtkStyle uses from migration guide examples
Matthias Clasen [Sat, 19 Feb 2011 18:47:43 +0000 (13:47 -0500)]
Replace GtkStyle uses from migration guide examples

Part of https://bugzilla.gnome.org/show_bug.cgi?id=642677

15 years agoFix a typo
Matthias Clasen [Sat, 19 Feb 2011 18:34:42 +0000 (13:34 -0500)]
Fix a typo

https://bugzilla.gnome.org/show_bug.cgi?id=642751

15 years agoFix typo
Andre Klapper [Sat, 19 Feb 2011 18:33:21 +0000 (19:33 +0100)]
Fix typo

15 years agoPlug a memleak in the tracker search engine
Matthias Clasen [Sat, 19 Feb 2011 18:31:50 +0000 (13:31 -0500)]
Plug a memleak in the tracker search engine

Patch by Vincent Untz,
https://bugzilla.gnome.org/show_bug.cgi?id=642771

15 years agoMake gtk_combo_box_text_get_active_text() behave as documented
Matthias Clasen [Sat, 19 Feb 2011 18:27:51 +0000 (13:27 -0500)]
Make gtk_combo_box_text_get_active_text() behave as documented

If there is an entry, it is supposed to return the contents
of the entry. Pointed out by Allin Cottrell,
https://bugzilla.gnome.org/show_bug.cgi?id=642681

15 years agoUse the correct function to free boxed GdkColors
Matthias Clasen [Sat, 19 Feb 2011 13:34:21 +0000 (08:34 -0500)]
Use the correct function to free boxed GdkColors

This fixes a segfault in gtk3-demo when running under accerciser.

15 years agodocs: migrating-2to3: improve cross-reference
Javier Jardón [Fri, 18 Feb 2011 22:17:04 +0000 (22:17 +0000)]
docs: migrating-2to3: improve cross-reference

15 years agodocs: migrating-2to3: Make the examples look prettier
Javier Jardón [Fri, 18 Feb 2011 22:09:40 +0000 (22:09 +0000)]
docs: migrating-2to3: Make the examples look prettier

15 years agoGtkSwitch: Add an AtkAction implementation
Matthias Clasen [Fri, 18 Feb 2011 04:06:33 +0000 (23:06 -0500)]
GtkSwitch: Add an AtkAction implementation

15 years agoGtkSwitch: Use ATK_DEFINE_TYPE properly
Matthias Clasen [Fri, 18 Feb 2011 02:55:54 +0000 (21:55 -0500)]
GtkSwitch: Use ATK_DEFINE_TYPE properly

15 years agoHypertext does not really make sense for GtkLinkButton
Matthias Clasen [Fri, 18 Feb 2011 02:00:35 +0000 (21:00 -0500)]
Hypertext does not really make sense for GtkLinkButton

Instead, implement HyperLinkImpl and return the single link
object. This commit also adds an AtkAction implementation
for the link object.

15 years agoGailEntry: remove idle if cell editing is canceled
Matthias Clasen [Fri, 18 Feb 2011 00:06:19 +0000 (19:06 -0500)]
GailEntry: remove idle if cell editing is canceled

This avoids warnings when cell editing is interrupted e.g. by
adding or removing a row.

15 years agoGailEntry: remove idle if cell editing is canceled
Matthias Clasen [Fri, 18 Feb 2011 00:06:19 +0000 (19:06 -0500)]
GailEntry: remove idle if cell editing is canceled

This avoids warnings when cell editing is interrupted e.g. by
adding or removing a row.

15 years agogtk-demo: plug a memleak in the editable cells demo
Matthias Clasen [Thu, 17 Feb 2011 23:49:01 +0000 (18:49 -0500)]
gtk-demo: plug a memleak in the editable cells demo

15 years agoFix a memory leak with file chooser previews
Matthias Clasen [Thu, 17 Feb 2011 23:34:28 +0000 (18:34 -0500)]
Fix a memory leak with file chooser previews

15 years agogtk-demo: Make the menu example work again
Matthias Clasen [Thu, 17 Feb 2011 21:40:00 +0000 (16:40 -0500)]
gtk-demo: Make the menu example work again

15 years agoRemove a leaking get_name implementation
Matthias Clasen [Thu, 17 Feb 2011 20:56:52 +0000 (15:56 -0500)]
Remove a leaking get_name implementation

This was leaking a lot of memory; just rely on atk_object_get_name.

15 years agoDon't leak the GDir in the iconview example
Matthias Clasen [Thu, 17 Feb 2011 20:54:50 +0000 (15:54 -0500)]
Don't leak the GDir in the iconview example

15 years agoFree event axes for double/triple click events.
Carlos Garnacho [Thu, 17 Feb 2011 19:43:31 +0000 (20:43 +0100)]
Free event axes for double/triple click events.

The button event axes are copied over when synthesizing
these events, so free them as well in gdk_event_free().

15 years agoFix parsing of color names containing numbers
Carlos Garnacho [Thu, 17 Feb 2011 19:04:29 +0000 (20:04 +0100)]
Fix parsing of color names containing numbers

They were being defined correctly through @define-color
in CSS, but parsing failed at the moment of creating
GtkSymbolicColors depending on these.

15 years agoCheck if the accessible is actually an AtkAction
Matthias Clasen [Thu, 17 Feb 2011 18:29:59 +0000 (13:29 -0500)]
Check if the accessible is actually an AtkAction

15 years agoGailProgressBar: make value setters work
Matthias Clasen [Thu, 17 Feb 2011 18:20:27 +0000 (13:20 -0500)]
GailProgressBar: make value setters work

15 years agoAdd forgotten include
Matthias Clasen [Thu, 17 Feb 2011 18:17:09 +0000 (13:17 -0500)]
Add forgotten include

15 years agoFix includes in gtkassistant.c
Matthias Clasen [Thu, 17 Feb 2011 17:35:07 +0000 (12:35 -0500)]
Fix includes in gtkassistant.c

Also fix a bad case in gtk_assistant_accessible_get_n_children.

15 years agoGtkAssistant: Use _gtk_accessible_set_factory_type
Matthias Clasen [Thu, 17 Feb 2011 17:25:23 +0000 (12:25 -0500)]
GtkAssistant: Use _gtk_accessible_set_factory_type

15 years agoGtkGrid: Avoid problems with uninitialized memory
Matthias Clasen [Thu, 17 Feb 2011 16:51:16 +0000 (11:51 -0500)]
GtkGrid: Avoid problems with uninitialized memory

valgrind complained about these, and they make for bad size allocation
and the occasional crash.

15 years agoUpdated Bengali India Translation
Runa Bhattacharjee [Thu, 17 Feb 2011 15:01:19 +0000 (20:31 +0530)]
Updated Bengali India Translation

15 years agoUpdated Bengali India Translation
Runa Bhattacharjee [Thu, 17 Feb 2011 14:32:47 +0000 (20:02 +0530)]
Updated Bengali India Translation

15 years agoAdd a AtkHypertext implementation for GtkLinkButton
Matthias Clasen [Thu, 17 Feb 2011 12:10:31 +0000 (07:10 -0500)]
Add a AtkHypertext implementation for GtkLinkButton

https://bugzilla.gnome.org/show_bug.cgi?id=586201

15 years agom4: Fix GTK_CHECK_BACKEND() to also check for a minimum version
Emmanuele Bassi [Thu, 17 Feb 2011 09:33:07 +0000 (09:33 +0000)]
m4: Fix GTK_CHECK_BACKEND() to also check for a minimum version

This should make the macro slightly more useful.

Update the documentation mentioning the macro as well.

15 years agoBuild fix in GtkSeparatorMenuItem
Emmanuele Bassi [Thu, 17 Feb 2011 09:24:25 +0000 (09:24 +0000)]
Build fix in GtkSeparatorMenuItem

https://bugzilla.gnome.org/show_bug.cgi?id=642541

15 years agoUse _gtk_accessible_set_factory_type in GtkSeparatorMenuItem
Matthias Clasen [Thu, 17 Feb 2011 06:34:10 +0000 (01:34 -0500)]
Use _gtk_accessible_set_factory_type in GtkSeparatorMenuItem

15 years agoUse _gtk_accessible_set_factory_type in GtkSwitch
Matthias Clasen [Thu, 17 Feb 2011 06:32:24 +0000 (01:32 -0500)]
Use _gtk_accessible_set_factory_type in GtkSwitch

15 years agoUse _gtk_accessible_set_factory_type for GtkIconView
Matthias Clasen [Thu, 17 Feb 2011 06:30:33 +0000 (01:30 -0500)]
Use _gtk_accessible_set_factory_type for GtkIconView

15 years agoAdd a private function for accessible factory registration
Matthias Clasen [Thu, 17 Feb 2011 06:24:43 +0000 (01:24 -0500)]
Add a private function for accessible factory registration

This avoids repeating the same code for each widget that
has its own accessible implementation inside GTK+.

15 years agoAdd an a11y implementation to GtkSeparatorMenuItem
Matthias Clasen [Thu, 17 Feb 2011 05:44:26 +0000 (00:44 -0500)]
Add an a11y implementation to GtkSeparatorMenuItem

Its all boilerplate, and it more than doubles the line count.
Yay :-(

15 years agoifdef X11-specific parts in gail
Matthias Clasen [Thu, 17 Feb 2011 04:56:33 +0000 (23:56 -0500)]
ifdef X11-specific parts in gail

GTK_IS_PLUG() and GTK_IS_SOCKET() now need this protection.
https://bugzilla.gnome.org/show_bug.cgi?id=642263

15 years agoRemove a bunch of crazy code from gail
Matthias Clasen [Thu, 17 Feb 2011 04:30:21 +0000 (23:30 -0500)]
Remove a bunch of crazy code from gail

...and replace it with only slightly less crazy code.
No need to create an destroy hash tables for each key press.

15 years agoForgotten file
Matthias Clasen [Thu, 17 Feb 2011 04:26:36 +0000 (23:26 -0500)]
Forgotten file

15 years agogail: Fix the atk_add_key_event_listener implementation
Matthias Clasen [Thu, 17 Feb 2011 03:57:25 +0000 (22:57 -0500)]
gail: Fix the atk_add_key_event_listener implementation

Based on a patch by Alejandro Piñeiro Iglesias,
https://bugzilla.gnome.org/show_bug.cgi?id=599907

15 years agogail: support indeterminate state of check menuitems
Matthias Clasen [Thu, 17 Feb 2011 03:35:16 +0000 (22:35 -0500)]
gail: support indeterminate state of check menuitems

Patch by Szilárd Pfeiffer
https://bugzilla.gnome.org/show_bug.cgi?id=626730

15 years agoFix gailstatusbar problems
Matthias Clasen [Thu, 17 Feb 2011 02:58:10 +0000 (21:58 -0500)]
Fix gailstatusbar problems

Reported in https://bugzilla.gnome.org/show_bug.cgi?id=630971

15 years agoCheck the return value of gtk_tree_model_get_iter
Matthias Clasen [Wed, 16 Feb 2011 23:46:44 +0000 (18:46 -0500)]
Check the return value of gtk_tree_model_get_iter

Noticed in passing, didn't really see it crash there, but
better safe than sorry.

15 years agogtk_tree_model_filter_row_deleted: don't emit signals too early
Matthias Clasen [Wed, 16 Feb 2011 23:40:14 +0000 (18:40 -0500)]
gtk_tree_model_filter_row_deleted: don't emit signals too early

gtk_tree_model_filter_row_deleted was emitting ::row-deleted while
the internal state of the model was still in disarray, causing
segfaults e.g. when mapping the file chooser with accessibility
turned on. This is just a bandaid fix, and doesn't try address
any of the deeper problems of the filter model code.

I did take the time to reduce rampant variable shadowing in that
function, though.

15 years agoAllow checking for GDK backends
Emmanuele Bassi [Wed, 16 Feb 2011 15:53:20 +0000 (15:53 +0000)]
Allow checking for GDK backends

Now that a single shared object can contain multiple backends we also
need to provide a simple way for third party code to verify that the
copy of GDK they are linking to supports their backend.

The simplest way to verify is an m4 macro, GTK_CHECK_BACKEND(), shipped
with the gtk+ m4 macros.

The usage is pretty basic:

  GTK_CHECK_BACKEND([x11], [gtk_has_x11=yes], [gtk_has_x11=no])
  AM_CONDITIONAL(BUILD_X11_CODE, test "x$gtk_has_x11" = "xno")

https://bugzilla.gnome.org/show_bug.cgi?id=642479

15 years agogtk: don't always invalidate spinbuttons on each leave_notify()
Michael Natterer [Wed, 16 Feb 2011 17:39:33 +0000 (18:39 +0100)]
gtk: don't always invalidate spinbuttons on each leave_notify()

but only when an arrow was prelighted. Also, chain up unconditonally
in enter_notify() and leave_notify() because GtkEntry implements them
too.

15 years agoUploaded Ukranian
Daniel Korostil [Wed, 16 Feb 2011 05:30:59 +0000 (07:30 +0200)]
Uploaded Ukranian

15 years agoUpdated Ukranian
Daniel Korostil [Tue, 15 Feb 2011 19:57:17 +0000 (21:57 +0200)]
Updated Ukranian

15 years agoAllow custom icon size in gtk_render_icon_pixbuf()
Matthias Clasen [Mon, 14 Feb 2011 18:20:33 +0000 (13:20 -0500)]
Allow custom icon size in gtk_render_icon_pixbuf()

Pointed out in bug 642213.